package com.bussiness.system.dao;

import com.bussiness.system.model.MyDeptRoleEntity;
import com.bussiness.system.dto.MyDeptRoleDto;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MyDeptRoleDao {
    int deleteByPrimaryKey(Long id);

    int insert(MyDeptRoleEntity record);

    int insertSelective(MyDeptRoleEntity record);

    MyDeptRoleEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MyDeptRoleEntity record);

    int updateByPrimaryKey(MyDeptRoleEntity record);

    List<Map<String, Object>> findRoleByDeptId(Long deptId);

    int insertDeptRoleList(List<MyDeptRoleDto> myDeptRoleDtos);

    int deleteByDeptId(Long deptId);
}